export default {
	state:{
		token:false,
		status:false,
		userInfo:uni.getStorageSync('userinfo')||{}
	},
	mutations:{
		setUserInfo(state,payload){
			state.userInfo = payload;
			state.token = payload.token;
			state.status = payload.status;
			uni.setStorageSync('userinfo', state.userInfo);
		},
		clearUserInfo(state){
			uni.removeStorageSync('userinfo');
			state.userInfo = {};
			state.token = false;
			state.status = false;
		}
	},
	getters:{
		
	},
	actions:{
		
	}
}